package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    public void add(OrderSetting orderSetting);//新增
    public void editNumberByOrderDate(OrderSetting orderSetting);//通过日期修改可预约人数
    public long findCountByOrderDate(Date orderDate);//通过日期查找预约总人数
    public List<OrderSetting> getOrderSettingByMonth(Map map);//通过日期范围查询
    public OrderSetting findByOrderDate(Date orderDate);//通过预约日期查询
    public void editReservationsByOrderDate(OrderSetting orderSetting);//通过预约日期更新已预约人数
    void updateReservation(Date orderDate);//用户取消预约之后,通过日期,使得已预约人数-1
}
